package com.wac.user.controller;

import com.alibaba.fastjson.JSONObject;
import com.wac.user.client.OrderClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author wuancheng
 * @date 2024/8/26 14:50
 * @description
 */
@RestController
@RequestMapping("/order")
public class OrderController {

    @Resource
    private OrderClient orderClient;

    /**
     * 获取订单
     *
     * @param param
     * @return
     */
    @PostMapping("/get")
    public JSONObject getOrder(JSONObject param){
        return orderClient.getOrder(param);
    }
}
